package com.ruoyi.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 成绩存储学生在各个课程中的成绩对象 grades
 * 
 * @author ruoyi
 * @date 2024-05-23
 */
public class Grades extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 成绩记录的唯一标识 */
    private Long gradeId;

    /** 成绩对应的学生ID */
    @Excel(name = "成绩对应的学生ID")
    private Long studentId;

    /** 成绩对应的课程ID */
    @Excel(name = "成绩对应的课程ID")
    private Long courseId;

    /** 学生在该课程的分数 */
    @Excel(name = "学生在该课程的分数")
    private BigDecimal score;

    public void setGradeId(Long gradeId) 
    {
        this.gradeId = gradeId;
    }

    public Long getGradeId() 
    {
        return gradeId;
    }
    public void setStudentId(Long studentId) 
    {
        this.studentId = studentId;
    }

    public Long getStudentId() 
    {
        return studentId;
    }
    public void setCourseId(Long courseId) 
    {
        this.courseId = courseId;
    }

    public Long getCourseId() 
    {
        return courseId;
    }
    public void setScore(BigDecimal score) 
    {
        this.score = score;
    }

    public BigDecimal getScore() 
    {
        return score;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("gradeId", getGradeId())
            .append("studentId", getStudentId())
            .append("courseId", getCourseId())
            .append("score", getScore())
            .toString();
    }
}
